package com.haruhinav;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableAsync //开启异步
@EnableScheduling //开启定时
@EnableTransactionManagement //开启事物管理
@SpringBootApplication
public class HaruhiStartup extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(HaruhiStartup.class, args);
    }

//    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//        return builder.sources(HaruhiStartup.class);
//    }
}

